<?php
use yii\helpers\Html;
use yii\widgets\ActiveForm;

/* @var $this yii\web\View */
/* @var $model common\models\Goods */
/* @var $form yii\widgets\ActiveForm */
?>

<div class="goods-form">

    <?php $form = ActiveForm::begin(); ?>

    <?= $form->field($model, 'name')->textInput(['maxlength' => true])?>

    <?= $form->field($model, 'price')->textInput(['maxlength' => true])?>

    <?= $form->field($model, 'num')->textInput()?>

    <?= $form->field($model, 'logo')->textInput(['maxlength' => true])?>

    <?= $form->field($model, 'sumlen')->textInput()?>

    <?= $form->field($model, 'bladelen')->textInput()?>

    <?= $form->field($model, 'stemlen')->textInput()?>

    <?= $form->field($model, 'width')->textInput()?>

    <?= $form->field($model, 'height')->textInput()?>

    <?= $form->field($model, 'hard')->textInput()?>

    <?= $form->field($model, 'stuff')->textInput(['maxlength' => true])?>

    <?= $form->field($model, 'slot')->textInput()?>

    <?= $form->field($model, 'sheath')->textInput(['maxlength' => true])?>

    <?= $form->field($model, 'grind')->textInput(['maxlength' => true])?>

    <?= $form->field($model, 'craftwork')->textInput(['maxlength' => true])?>

    <?= $form->field($model, 'weight')->textInput()?>

    <?= $form->field($model, 'gift')->textInput(['maxlength' => true])?>

    <?= $form->field($model, 'pid')->textInput()?>

    <?= $form->field($model, 'message')->textarea(['rows' => 6])?>

    <div class="form-group">
        <?= Html::submitButton($model->isNewRecord ? 'Create' : 'Update', ['class' => $model->isNewRecord ? 'btn btn-success' : 'btn btn-primary'])?>
    </div>

    <?php ActiveForm::end(); ?>

</div>
